package com.book.entity;

import static com.github.drinkjava2.jsqlbox.JAVA8.*;
import static com.github.drinkjava2.jsqlbox.SQL.*;
import static com.github.drinkjava2.jsqlbox.DB.*;
import com.github.drinkjava2.jdbpro.SqlItem;
import com.github.drinkjava2.jdialects.annotation.jdia.*;
import com.github.drinkjava2.jdialects.annotation.jpa.*;
import com.github.drinkjava2.jsqlbox.*;

import java.util.Date;
import java.util.Map;

/**
 * 小说类型表
 * @author Admin
 *
 */

@Table(name="book_type")
public class BookType extends ActiveRecord<BookType> {

	public static final String TABLE_NAME = "book_type";

	public static final String TYPE_ID = "type_id";

	public static final String TYPE_NAME = "type_name";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";



	@Id
	@Column(name="type_id")
	private Integer typeId;



	@Column(name="type_name", length=200)
	private String typeName;

	@CreateTimestamp
	@Column(name="create_time")
	private Date createTime;

	@UpdateTimestamp
	@Column(name="update_time")
	private Date updateTime;



	public Integer getTypeId(){
		return typeId;
	}

	public BookType setTypeId(Integer typeId){
		this.typeId=typeId;
		return this;
	}

	public String getTypeName(){
		return typeName;
	}

	public BookType setTypeName(String typeName){
		this.typeName=typeName;
		return this;
	}

	public Date getCreateTime(){
		return createTime;
	}

	public BookType setCreateTime(Date createTime){
		this.createTime=createTime;
		return this;
	}

	public Date getUpdateTime(){
		return updateTime;
	}

	public BookType setUpdateTime(Date updateTime){
		this.updateTime=updateTime;
		return this;
	}

}
